# -*- coding: utf-8 -*-
import os, shutil
from config.config import config

def clearLogFiles():
    logPath = config.get("logger", "log_path")
    for i in os.listdir(logPath):
        path_file = os.path.join(logPath, i)  # 取文件绝对路径
        print(path_file)
        if os.path.isfile(path_file):
            os.remove(path_file)


if __name__ == "__main__":
    clearLogFiles()